import { bindActionCreators } from 'redux';
import * as UserActions from './actions/user';

export function bootstrap({ dispatch }) {

  const userActions = bindActionCreators(UserActions, dispatch);
  
  return () => {
    userActions.getUser();
  };
}

export function getUsers({ dispatch }){
	const action = bindActionCreators(UserActions,dispatch);
	return () => {
		action.getUsers();
	}
}

